﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CRM.Database.Model.Customers>" %>


<%@ Import Namespace="CRM.AuthorizedActionLink.Extensions" %>

<% Html.DevExpress().PageControl(settings =>
                                       {
                                           settings.Name = "pcAllTurnovers";
                                           settings.TabPages.Add(CRM.Resourses.Resourses.Purchases).SetContent(() => Html.RenderAuthorizedCustomerAction("Turnovers", "Customers", new { customerId = Model.IdCustomer }));
                                           settings.TabPages.Add(CRM.Resourses.Resourses.Sellings).SetContent(() => Html.RenderAuthorizedCustomerAction("SalesTurnovers", "Customers", new { customerId = Model.IdCustomer }));
                                       }).GetHtml();%>

